cmake_minimum_required(VERSION 3.5)

project(example2 LANGUAGES CXX)

add_library(message
  STATIC 
  message.h 
  message.cpp
)

add_executable(helloCmake main.cpp)

target_link_libraries(helloCmake message)